package interfejs;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JToolBar;
import javax.swing.table.AbstractTableModel;

import viewModel.PartsTableModel;
import viewModel.VehiclesTableModel;

public class PartsPanel extends JPanel {
	
	private JTable partsTable;
	
	public PartsPanel(){
		super(new BorderLayout());
		
		partsTable = new JTable(new PartsTableModel());		
		partsTable.setPreferredScrollableViewportSize(new Dimension(partsTable.getWidth(), 100));
		partsTable.setFillsViewportHeight(true);
		
		JScrollPane scrollPane = new JScrollPane(partsTable);
		add(scrollPane, BorderLayout.CENTER);		
	}
	
}

